home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in.0-3</name>
- <id>-1</id>
- <cardCount>5</cardCount>
- <cardID>5586</cardID>
- <listID>2095</listID>
- <cantModify><false /></cantModify>
- <cantDelete><false /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>512</width>
- <height>342</height>
- </cardSize>
- <script>-- ================ Apple Training Support =================
- --
- -- Project Name: HyperCard 2.0 Product Training
- --
- -- Apple employees:
- -- Design and Development: Jeff Brechlin
- -- Team Leader: Mary VanRiper
- --
- -- Contractors:
- -- Design/Animations: Anne Wysocki
- -- Programmers: Gabriel Acosta, Kristi Wachter, Anne Wysocki
- -- Last modified: April 6, 1990
- -- ========================================================
-
-
- --• GLOBALS:
- -- DisSpeed: the speed to use for visual dissolves
-
- ---------------------------------------------------------------------
- -- NAVIGATION HANDLERS
-
- -- This handler goes to the card chosen by the user.
- -- "goMain", "goSect1", and "goSect2" are below.
- on goto CdName, Section, IDnum
- global MapMode
- if MapMode is "graph" then
- DeHilite
- Flash
- end if
- if "bkgnd" is in the name of target then goMain CdName
- else if Section is "section 1:" then goSect1 CdName, IDnum
- else if Section is "section 2:" then goSect2 CdName, IDnum
- else goSect1 CdName, IDnum
- end goto
-
-
-
- -- This handler goes to one of the Main-level cards.
- on goMain CdName
- global DisSpeed
- visual DisSpeed
- go cd CdName of "Intro to HyperCard 2.0"
- -- openCard
- end goMain
-
- -- Go to a cd from the Basic Menu or the Support Menu.
- on goSect1 CdName, IDnum
- global DisSpeed, OriginCdName,mapMode
- put the lockScreen into realMapMode
- lock screen
- put the short name of this cd into OriginCdName
- if CdName contains "Introduction to" then
- set lockmessages to true
- go to cd OriginCdName of "Intro to HyperCard 2.0"
- -- set the icon of bg btn "section" to OriginCdName
- send mouseUp to btn id IDnum
- set lockmessages to false
- if realMapMode is true then unlock screen
- unlock screen with DisSpeed
- openCard
- else
- go to cd OriginCdName of "Intro to HyperCard 2.0"
- -- set the icon of bg btn "section" to OriginCdName
- send mouseUp to btn id IDnum
- unlock screen with DisSpeed
- end if
- end goSect1
-
- -- Go to a cd from the Nuts & Bolts Menu.
- on goSect2 CdName, IDnum
- global DisSpeed, OriginCdName
- lock screen
- -- Is it in the intro (not New in 2.0) section?
- put the short name of this cd into OriginCdName
-
- put "Stacks,The Home Stack,Windows,Cards,Buttons,Text Fields" &¬
- ",Menus,Graphics,Printing,Other Tools,Section 2:1" into introList
- put (cdName is in introList) into IsInFirstPt
-
- if IsInFirstPt then
- go to cd "section 2:1" of "Intro to HyperCard 2.0"
- send mouseUp to btn "checkboxa"
- send mouseUp to btn id IDnum
- else
- go to cd "section 2:2" of "Intro to HyperCard 2.0"
- send mouseUp to btn "checkboxb"
- send mouseUp to btn id IDnum
- end if
-
- unlock screen with DisSpeed
- end goSect2
-
- ---------------------------------------------------------------------
- -- HILITING HANDLERS
-
- -- Hilite the btn showing where the user came from.
- on HiliteMap
- global CameFrom
- if the short name of this cd is "Level 1" then
- set the hilite of bg btn CameFrom to true
- else
- put number of cd btns into NumBtns
- repeat with i=1 to NumBtns
- if (char 1 to 15 of the short name of btn i) is CameFrom then
- set the hilite of btn i to true
- exit repeat
- end if
- end repeat
- end if
- end HiliteMap
-
- -- Dehilite all bg & cd btns
- on DeHilite
- repeat with i=5 to number of bg btns
- set the hilite of bg btn i to false
- end repeat
-
- repeat with i=1 to the number of btns
- set the hilite of btn i to false
- end repeat
- end DeHilite
-
- -- Make the clicked btn flash
- on Flash object
- set the hilite of the target to false
- wait 10
- set the hilite of the target to true
- wait 10
- set the hilite of the target to false
- end Flash
-
-
- -- Remove leading spaces from a string of chars
- function stripLeadBlanks string
- return (word 1 of string && ¬
- (word 2 to (the number of words of string) of string))
- end stripLeadBlanks
-
- --===================
-
- -- These